package com.周阳.代理模式.静态代理;

/**
 * 飞猪-代理
 */
public class FeiZhuProxyPoint implements SellTickets {

    private Trainstation trainstation;

    public FeiZhuProxyPoint(Trainstation trainstation) {
        this.trainstation = trainstation;
    }

    @Override
    public void sell() {
        System.out.println("前置增强>>>>>>扩展服务费");
        trainstation.sell();
        System.out.println("后置增强>>>>>>给用户发短信");
    }
}
